package cn.powerone.scm.service;

import java.io.IOException;
import java.util.List;

import cn.powerone.scm.domain.ScmCustomer;
import cn.powerone.scm.domain.ScmCustomerQuotes;
import cn.powerone.scm.domain.ScmProjects;
import jakarta.servlet.http.HttpServletResponse;

/**
 * 客户报价单Service接口
 * 
 * @author PowerOne
 * @date 2025-07-02
 */
public interface IScmCustomerQuotesService 
{
    /**
     * 查询客户报价单
     * 
     * @param id 客户报价单主键
     * @return 客户报价单
     */
    public ScmCustomerQuotes selectScmCustomerQuotesById(Long id);

    /**
     * 查询客户报价单列表
     * 
     * @param scmCustomerQuotes 客户报价单
     * @return 客户报价单集合
     */
    public List<ScmCustomerQuotes> selectScmCustomerQuotesList(ScmCustomerQuotes scmCustomerQuotes);

    /**
     * 新增客户报价单
     * 
     * @param scmCustomerQuotes 客户报价单
     * @return 结果
     */
    public int insertScmCustomerQuotes(ScmCustomerQuotes scmCustomerQuotes);

    /**
     * 修改客户报价单
     * 
     * @param scmCustomerQuotes 客户报价单
     * @return 结果
     */
    public int updateScmCustomerQuotes(ScmCustomerQuotes scmCustomerQuotes);

    /**
     * 批量删除客户报价单
     * 
     * @param ids 需要删除的客户报价单主键集合
     * @return 结果
     */
    public int deleteScmCustomerQuotesByIds(Long[] ids);

    /**
     * 删除客户报价单信息
     * 
     * @param id 客户报价单主键
     * @return 结果
     */
    public int deleteScmCustomerQuotesById(Long id);

    /**
     * 批量插入客户报价单
     *
     * @param scmCustomerQuotesList 客户报价单集合
     * @return 结果
     */
    public ScmCustomerQuotes selectScmCustomerQuotesBySupplierQuoteId(Long supplierQuoteId);

    public List<ScmCustomerQuotes> selectScmCustomerQuotesListByProjectId(Long projectId);

    public void exportExcelByTemplate(HttpServletResponse response, ScmProjects scmProjects, ScmCustomer scmCustomer, List<ScmCustomerQuotes> scmCustomerQuotesList, String templateName) throws IOException;
}
